#ifndef RF_INTERPRET_H
#define RF_INTERPRET_H


typedef struct _esl_pro_strcut{

	unsigned char  uLen ;
	unsigned char  uMasterID;
	unsigned char  uGroupID;
	unsigned char  uESLID;

	unsigned char  uCmdCode:5;
	unsigned char  uCmdType:2;
	unsigned char  bRecall:1;

	unsigned char  uReturn;
	unsigned char  uReType;
}ESL_PROTOCAL,*p_ESL_PROTOCAL;


enum{ e_SEND,e_SENDOK, e_SendOut,e_ReturnOK,e_ReturnFalse,e_SendFalse };

class RF_Interpret{

public:
	RF_Interpret();
	~RF_Interpret();
public:
	
	int			  RF_InterpretRWDataToProtcol( unsigned char *pDest,
											   unsigned int   uESLId,
											   unsigned char  uTempleid,
											   unsigned char  *pData,
											   unsigned int    uLen);
	unsigned char RF_ComputeFcc( unsigned char *pData, unsigned char uLen );
private:
	int			  RF_FindChar( unsigned char * pData, unsigned char ch , int len );
	unsigned char RF_GetFeatureCode( unsigned char templeid, unsigned char index );
	//unsigned char RF_ComputeFcc( unsigned char *pData, unsigned char uLen );
private:
	


	
};
#endif